package com.soft.javase.day02.practice.override;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class Manager extends Employee{
    private String department;

    public Manager(String name, String address, double baseSalary, String department) {
        super(name, address, baseSalary);
        this.department = department;
    }

    public String getDepartment() {
        return this.department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("Department: " + this.department);
    }
}
